package com.scs.application.modules.base.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @ Description： 公共服务方法
 */
@Slf4j
@Component
public class SingleService {
    private SingleService() {}
    public static SingleService inst;

    @Autowired
    public HospitalMaterialService hospitalMaterialService;

    @Autowired
    public MaterialSpecService materialSpecService;

    @Autowired
    public MaterialService materialService;


    @PostConstruct
    public void init() {
        inst = this;
        inst.hospitalMaterialService = this.hospitalMaterialService;
        inst.materialSpecService = this.materialSpecService;
        inst.materialService = this.materialService;
    }
}
